Skip to content

fix: correct baseUrl and URL fallbacks for GitHub Pages deployment#3

Merged
aru-amedeo merged 1 commit into
mainfrom
feat/project-setup
May 15, 2026
Merged

fix: correct baseUrl and URL fallbacks for GitHub Pages deployment#3
aru-amedeo merged 1 commit into
mainfrom
feat/project-setup

Conversation

@aru-amedeo
Copy link
Copy Markdown
Member

@aru-amedeo aru-amedeo commented May 15, 2026

Summary

The GitHub Pages site at https://arubacloud.github.io/api/ was loading with a broken layout because the baseUrl was set to / instead of /api/.

Root cause

The SITE_URL and BASE_URL GitHub repository variables were not set, so the build fell back to the hardcoded defaults (baseUrl: '/'). Since previous builds were failing at the SSG stage, this was never visible — now that the build passes, the wrong baseUrl is deployed.

Changes

  • docusaurus.config.js: updated fallback url to https://arubacloud.github.io and baseUrl to /api/
  • .github/workflows/deploy.yml: same correct defaults in the build step env vars

Testing

  • Local build passes for both en and it locales ✅

Site is served at https://arubacloud.github.io/api/ so:
- url fallback: 'https://arubacloud.github.io'
- baseUrl fallback: '/api/'

Both docusaurus.config.js and deploy.yml now use the correct defaults
when SITE_URL / BASE_URL repository variables are not explicitly set.
@aru-amedeo aru-amedeo merged commit 463db6a into main May 15, 2026
1 check passed
@aru-amedeo aru-amedeo deleted the feat/project-setup branch May 21, 2026 15:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant